# detect operating system
ifeq ($(OS),Windows_NT)
    CURRENT_OS := Windows
else
    CURRENT_OS := $(shell uname -s)
endif

#GOBIN
GOBIN = $(shell pwd)/build/bin
GO ?= latest

# variables
BUILD_FLAGS = -tags netgo

all: build

unittest:
	# @go test -v ./internal/...

buildquick:
	echo BUILD_FLAGS=$(BUILD_FLAGS)	
	@go build  $(BUILD_FLAGS) -o ./build/helloWorld ./cmd/helloworld

build: unittest buildquick

clean:
	rm -rf ./build

.PHONY: build 